package com.tanhua.model.vo;

import com.tanhua.model.mongo.Option;
import com.tanhua.model.mongo.Question;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * @Description:
 * @Create by: wanglei
 * @Date: 2021/11/7 11:07
 */

/**
 * 题目的选项。
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OptionVo {
    private String id; //选项编号
    private String option;  //选项

    public static OptionVo init(Option option) {
        OptionVo vo = new OptionVo();
        vo.setId(option.getId().toHexString());
        vo.setOption(option.getOption());
        return vo;
    }


}
